<template>
  <div>{{str}}</div>
</template>

<script>
import evenbus from "../eventBus"
export default {
  data(){
    return {
      str:''
    }
  },
   created(){
    evenbus.$on("sayHello", item =>{
    this.str=item
    console.log(item);
    })
   }
}
</script>

<style></style>
